package com.example.springboot.repository;

import com.example.springboot.bean.Employee;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.Repository;

/**
 * Created by tang on 2017/11/21.
 */
public interface EmployeeRepository extends PagingAndSortingRepository<Employee, Integer> {
    public Employee findByName(String name);

    public Employee findById(int id);

}
